package test;

/**
 * 业务异常
 * <p>
 * 继承自RuntimeException，不需要捕捉。
 * </p>
 * 
 * @author sxp
 * @since V1.0 Feb 21, 2017
 */
public class BusinessException extends RuntimeException {
	private static final long serialVersionUID = -6253253200433098358L;
	private int errorCode;

	public BusinessException() {
		super();
	}

	public BusinessException(String message) {
		super(message);
	}

	public BusinessException(String message, Throwable cause) {
		super(message, cause);
	}

	public BusinessException(Throwable cause) {
		super(cause);
	}

	public BusinessException(int errorCode, String message) {
		super(message);
		this.errorCode = errorCode;
	}

	public BusinessException(int errorCode, String message, Throwable cause) {
		super(message, cause);
		this.errorCode = errorCode;
	}

	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}

}
